{% extends "base.html" %}

{% block title %}Editing system {{system.name}}{% endblock %}
{% block heading %}Editing system {{system.name}}{% endblock %}

{% block content %}

		<form action='/submitsys' method='post'>
		<input type='hidden' name='key' value='{{system.key}}' />
		<table>
			<tr>
				<td>System name:</td>
				<td>{{system.name}}</td>
			</tr>
			<tr>
				<td>Category:</td>
				<td>
					<select name='systype'>
						{% for category in categories %}
							<option {% ifequal category system.systype %}selected='selected' {% endifequal %}>{{category}}</option>
						{% endfor %}
					</select> 
				</td>
			</tr>
			<tr>
				<td valign='top'>Notes:</td>
				<td>
					<textarea rows="10" cols="40" name="notes">{{system.notes}}</textarea>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type='submit' value='Save' /></td>
			</tr>	
		</table>
		</form>

{% endblock %}
